<template>
  <el-card class="box-card" style="line-height: 40px;height: 700px;overflow-y: auto">
    <div slot="header" class="clearfix">
      <span>问 诊</span>
<!--      <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>-->
    </div>
<!--    <div v-for="o in 4" :key="o" class="text item">-->
<!--      {{'列表内容 ' + o }}-->
<!--    </div>-->
    <div class="text-item">
      <el-empty description="暂无提问记录" v-if="$store.state.dialogues[$store.state.time].length===0"></el-empty>
      <qand-a v-for="items in $store.state.dialogues[$store.state.time]" v-bind:answer="items.a" v-bind:question="items.q"></qand-a>
    </div>
  </el-card>

</template>

<script>
import QandA from "./SmallestPart/QandA";
export default {
  name: "DialogueForm",
  components: {QandA},
  props: {
    qandas: Array
  }
}
</script>

<style scoped>

</style>
